// pages/redirect/redirect.js

Page({
  data: {
    cardNum: "1000 4567 **** **** 3458",
    money : "14.00",
    selectIndex : 0,
    selectMoney : 10
  },
  onLoad: function () {
    
  },
  onRechargeTap : function(){
    console.log(this.data.selectMoney);
    wx.navigateTo({
      url: '/pages/payment/payment?money=' + this.data.selectMoney
    })
  },
  onMoneyTap: function (e) {
    this.setData({
      selectIndex : e.currentTarget.dataset.index,
      selectMoney : e.currentTarget.dataset.num
    });
  }

})